<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($id = $route->getAdminId()){
	$db->sendQuery("delete from `tip_sections` where `id` = '$id' limit 1");
	$db->sendQuery("delete from `tips` where `ts_id` = '$id'");
}

goToPage("/admin/sections");
?>